package com.example.demo.service.impl;

import com.example.demo.entity.Vistor;
import com.example.demo.mapper.VistorMapper;
import com.example.demo.service.VistorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class VistorServiceImpl implements VistorService {

    @Autowired
    private VistorMapper vistorMapper;

    @Override
    public int addConsult(Map<String,String> map) {
        return vistorMapper.addConsult(map);
    }

    @Override
    public int updateConsult(Map<String, String> map) {
        return vistorMapper.updateConsult(map);
    }

    @Override
    public int del1(int vid) {
        return vistorMapper.del(vid);
    }

    @Override
    public int del2(int vid) {
        return vistorMapper.del(vid);
    }

    @Override
    public int addMask(Map<String, String> map) {
        return vistorMapper.addMask(map);
    }

    @Override
    public List<Vistor> showToPage1(Integer startNum, Integer rows) {
        return vistorMapper.showToPage1(startNum,rows);
    }

    @Override
    public List<Vistor> showToPage2(Integer startNum, Integer rows) {
        return vistorMapper.showToPage2(startNum,rows);
    }

    @Override
    public int findTotal1() {
        return vistorMapper.findTotal1();
    }

    @Override
    public int findTotal2() {
        return vistorMapper.findTotal2();
    }
}
